﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace OrderService
{
    [ServiceContract]
    public interface IOrderContract
    {
        [OperationContract]
        bool IsAvailable();

        [OperationContract]
        Order GetOrder();

        [OperationContract]
        bool CancelOrder(int orderNumber);

        [OperationContract]
        void SetPayment(Order orderItem, int transactionId, bool result);

        [OperationContract]
        bool CheckProductIsAvailable(int orderNumber);

        [OperationContract]
        bool ShipOrder(int orderNumber);

        [OperationContract]
        decimal ProduceItems(decimal quantity);

        [OperationContract]
        decimal ConsumeItems(decimal quantity);

        [OperationContract]
        decimal GetTotalQuantity();
    }
}
